﻿using System;

namespace Dogshow.Web.Models
{
    public class Status
    {
        public StatusType Type { get; set; }
        public string Message { get; set; }

        public Status(StatusType type, string message)
        {
            Type = type;
            Message = message;
        }

        public Status()
        {
        }
    }

    public class UspenoSnimanje : Status
    {
        public UspenoSnimanje()
        {
            Type = StatusType.Success;
            Message = "Podaci su uspešno sačuvani";
        }
    }

    public class PodaciNisuValidni : Status
    {
        public PodaciNisuValidni()
        {
            Type = StatusType.Warning;
            Message = "Podaci nisu validni. Ispravite sve greške";
        }
    }

    public class Greska : Status
    {
        public Greska(Exception exception)
        {
            Type = StatusType.Error;
            Message = exception.Message;
        }
    }
}